package com.dzt.androidframework.express.net;


import com.dzt.androidframework.express.javabean.OrderInfoBean;
import com.dzt.androidframework.utils.GsonUtils;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by QHT on 2017-04-05.
 */
public abstract class MyStringCallBack extends Callback<OrderInfoBean> {
	/**
	 * Thread Pool Thread
	 *
	 * @param response
	 */
	@Override
	public OrderInfoBean parseNetworkResponse(Response response) throws Exception {
		String temp = response.body().string();
		OrderInfoBean baseData = GsonUtils.jsonToModel(temp, OrderInfoBean.class);
		return baseData;
	}
}
